function test () {
  return
}

console.log(test()) // undefined

function test1 (str = 'hello') {
  return str
}

console.log(test1(undefined)) // hello
